//
// Created by korack on 25-5-13.
//
#pragma once

#include <gtkmm/application.h>
#include "Network.h"

namespace Mp {

class ApplicationWindow;

class Application : public Gtk::Application
{
protected:
  Application();
  void on_activate() override;

public:
  static Glib::RefPtr<Application> create();

private:
  ApplicationWindow *create_appwindow();
  Glib::RefPtr<Network> network;

  bool connect_server(const std::string &server_address, int port) const;
};

} // namespace Mp
